package edu.ncst.baseweb.controller.admin;

import cn.wintersun.basecommon.common.Result;
import edu.ncst.baseweb.service.intrer.admin.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 首页界面数据
 */
@RestController
@RequestMapping("/admin/admin")
@PreAuthorize("hasAuthority('1')")
public class AdminController {
    @Autowired
    private AdminService adminService;
    @RequestMapping("lists")
    //登录后进入的首页
    public Result<List<Object>> index(String a){
        return adminService.list(a);
    }
}
